//
//  RGLoginViewModel.h
//  RedGrass
//
//  Created by wukong on 2018/12/29.
//  Copyright © 2018年 hongcaosp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpInterfaceUrl.h"
#import "HttpRequest.h"
#import "RGLoginViewProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface RGLoginViewModel : NSObject

-(instancetype) initWithProtocol:(id<RGViewProtocol>)protocol;

//获取验证码
-(void) gainCaptchaCodeWithPhone:(NSString *)phone;

//验证码登陆
-(void) loginWithCaptchaCode:(NSString *)code phone:(NSString *)phone;

//微信登录
-(void) loginWithWechatWithCode:(NSString *)code;

@end

NS_ASSUME_NONNULL_END
